const router = require('express').Router()
const { query } = require('../appid/index')

router.get('/list', (req, res) => {
  const { env } = req.query
  query(env).then(appids => {
    res.send(appids)
  })
})

module.exports = router
